<form name="form_admin" method="POST" action="<?php echo formEditAction()?>">
    <fieldset style="width: 47%;float:left">
        <legend>Base</legend>
    	<table cellpadding="0" cellspacing="1" id="tblsort" align="center">
    	  <tr class="headtb">
    		<td width="150" ><b>Name</b></td>
    		<td width="300"><b>Value</b></td>
    	  </tr>
    	 <tr>
     	   <td>Title Site</td>
     	  	<td>
     	  		<?php echo Displayconfig("TitleSite",200)?>
     	  	</td>
    	 </tr>
         
         <tr>
     	   <td>Footer Page</td>
     	  	<td>
     	  		<?php echo Displayconfig("FooterPage",200)?>
     	  	</td>
    	 </tr>
         
         <tr>
     	   <td>TimeZone Default</td>
     	  	<td>
     	  		<?php echo ConfigTimeZoneDefault()?>
     	  	</td>
    	 </tr> 	
          <tr>
	 	   <td>Currency unit Input</td>
	 	  	<td>
	 	  		<?echo Displayconfigse("UnitInput",array("USD","VND"))?>
	 	  	</td>
		 </tr>
		 <tr>
	 	   <td>Currency unit Display</td>
	 	  	<td>
	 	  		<?echo Displayconfigse("UnitDisplay",array("USD","VND"))?>
	 	  	</td>
		 </tr> 
         <tr>
	 	   <td>Email admin</td>
	 	  	<td>
	 	  		<?echo Displayconfig("EmailAdmin",200)?>
	 	  	</td>
		 </tr> 
         
         <tr>
	 	   <td>Logo</td>
	 	  	<td>
	 	  		<?echo inputFile('logo',getConfig('logo'))?>
	 	  	</td>
		 </tr> 
         
         <tr>
	 	   <td>Banner</td>
	 	  	<td>
	 	  		<?echo inputFile('banner',getConfig('banner'))?>
	 	  	</td>
		 </tr> 
         <tr>
     	   <td>Height banner</td>
     	  	<td>
     	  		<?php echo Displayconfig("heightbanner",200)?>
     	  	</td>
    	 </tr>
          <tr>
	 	   <td>Background</td>
	 	  	<td>
	 	  		<?echo inputFile('Background',getConfig('Background'))?>
	 	  	</td>
		 </tr> 
    	</table>
     </fieldset>
    
    <fieldset style="width: 49%;float:right">
        <legend>Email</legend>
        <table cellpadding="0" cellspacing="1" align="center" width="300">    	  
    	 <tr>
     	   <td>Host(SMTP)</td>
     	  	<td>
     	  		<input class="normal" name="SMTPConfig[host]" value="<?php echo $SMTP->host?>" />
     	  	</td>
    	 </tr>
         
         <tr>
     	   <td>Username</td>
     	  	<td>
     	  		<input class="normal" name="SMTPConfig[user]" value="<?php echo $SMTP->user?>" />
     	  	</td>
    	 </tr>
         <tr>
     	   <td>Password</td>
     	  	<td>
     	  		<input class="normal" type="password" name="SMTPConfig[pass]" value="<?php echo $SMTP->pass?>" />
     	  	</td>
    	 </tr> 
         <tr>
     	   <td>Name</td>
     	  	<td>
     	  		<input class="normal" name="SMTPConfig[name]" value="<?php echo $SMTP->name?>" />
     	  	</td>
    	 </tr>
         <tr>
     	   <td>Using smtp</td>
     	  	<td>
     	  		<input type="checkbox" name="SMTPConfig[type]" <?php if($SMTP->type==1)echo 'checked'?> value="1" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                SSL <input type="checkbox" name="SMTPConfig[ssl]" <?php if($SMTP->ssl==1)echo 'checked'?> value="1" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                Auth <input type="checkbox" name="SMTPConfig[auth]" <?php if($SMTP->auth==1)echo 'checked'?> value="1" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" id="buttestmail" value="Test" onclick="testmail()" />
     	  	</td>
    	 </tr> 
    	</table>
    </fieldset>
    <textarea style="display: none;"></textarea>
<div style="clear: both;">&nbsp;</div>
</form>

<script>
function testmail()
{ 
    submitform({act:location.href+'&opt=testmail',ajax:true,opt:{text:'testing...',onComplete:abc}});
}
function abc(t)
{
}
</script>